import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import mixins from './mixins';
import httpsURL from 'axios';
import 'css/base.less';

httpsURL.defaults.baseURL = '/apis';
// httpsURL.defaults.baseURL = process.env.VUE_APP_API_URL;

Vue.mixin(mixins);
Vue.config.productionTip = false;

// 引入 element-ui 样式库
import 'element-ui/lib/theme-chalk/index.css';
import 'css/element_theme.scss';

// 引入 element-ui 组件库 (按需引入)
import { Button } from "element-ui";
const components = [Button];
for (let key of components){
    Vue.component(key.name, key);
}

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');